

#include "log.h"
#include "data_xml.h"

#include "upload_xml.h"

int evcpe_upload_response_to_xml(
		struct evcpe_upload_response *method,
		struct evbuffer *buffer)
{
	int rc;
	evcpe_debug(__func__, "marshaling evcpe_upload_response");

	if ((rc = evcpe_xml_add_int(buffer, "Status",
			method->Status)))
		goto finally;

	if ((rc = evcpe_xml_add_string(buffer, "StartTime",
			method->StartTime)))
		goto finally;
	
	if ((rc = evcpe_xml_add_string(buffer, "CompleteTime",
			method->CompleteTime)))
		goto finally;

finally:
	return rc;
}
